Skip to main content

destroyWindow

Type

property

Summary

Specifies whether the memory used by a stack window is purged when the stack is closed.

Syntax

set the destroyWindow of <stack> to {true | false}

Description

Use the destroyWindow property when installing new externals, or to save memory.

If a stack's destroyWindow property is set to true, closing the stack removes the data structure maintaining that window.

External commands and external functions are removed from memory only when the stack controlling them is removed from memory. When you install a new external, or replace it with a new version while debugging, LiveCode cannot use it until you either quit LiveCode and then reopen the stack, or close the stack (after setting its destroyWindow to true) and then reopen it.

note

Despite its alarming name, the destroyWindow property does not destroy or damage a stack. It simply frees the memory used for its window.

Examples

set the destroyWindow of stack "Test Harness" to true

function: stacks

glossary: property, stack window

message: deleteStack

object: stack

property: externals, externalPackages

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?